//
// Created by 11401 on 25-7-8.
//

#include "app_task.h"



void StartDefaultTask(void *argument)
{
    /* USER CODE BEGIN StartDefaultTask */
    /* Infinite loop */
    for(;;)
    {
        uint8_t taak=0;
        xQueueReceive(dispatcher_task_txHandle, &taak,portMAX_DELAY);
        switch (taak)
        {
        case 'a':
            ILI9341_DispStringLine_EN(LINE(7),(char*)"task 01 a runing");
            HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_0);
            task_a();
            break;
        case 'b':
            ILI9341_DispStringLine_EN(LINE(7),(char*)"task 01 b runing");
            HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_1);
            task_b();
            break;
        case 'c':
            ILI9341_DispStringLine_EN(LINE(7),(char*)"task 01 c runing");
            HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_5);
            task_c();
            break;
        case 'd':
            ILI9341_DispStringLine_EN(LINE(7),(char*)"task 01 d runing");
            HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_2);
            task_d();
            break;
        case 'e':
            ILI9341_DispStringLine_EN(LINE(7),(char*)"task 01 e runing");
            HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_3);
            task_e();
            break;
        default:
            break;
        }
        HAL_GPIO_TogglePin(GPIOB,GPIO_PIN_5);
        vTaskDelay(10);

    }
    /* USER CODE END StartDefaultTask */
}


void task_a(void)
{
    while (1)
    {

        if (0)break;
    }
}
void task_b(void)
{
    while (1)
    {

        if (0)break;
    }
}
void task_c(void)
{
    while (1)
    {

        if (0)break;
    }
}
void task_d(void)
{
    while (1)
    {

        if (0)break;
    }
}
void task_e(void)
{
    while (1)
    {

        if (0)break;
    }
}